const express = require('express')
const path = require('path')
const server = express()

const startServer = () => {
  server.use(express.static(path.join(__dirname,'../public/images/uploads'))) //设置静态资源访问目录
  server.listen(3050, () => {
    console.log(`服务已经启动: 3050`)
  })
}


module.exports = { startServer }